//Kappy; Class program
//main.cpp : The main part of the program.

#include "Class.h";

void killClifford()
{
	Dog clifford("Clifford", 1, 100, -34237819057185);
}

void main()
{
	/*
	Dog clifford; //<-- Uses the DEFAULT constructor

	cout << clifford.age << endl;
	cout << clifford.energyLevel << endl;
	cout << clifford.name << endl;
	cout << clifford.weight << endl;

	clifford.~Dog();
	*/

	Dog bob("Clifford2.0", 1, 50, .3);
	Dog *dogGod = new Dog();

	cout << bob.age << endl;
	cout << bob.energyLevel << endl;
	cout << bob.name << endl;
	cout << bob.weight << endl;

	for(int i = 0; i < 30; i++)
	{
		cout <<"i is:" << i << endl; 
		cout << bob.name << "'s energy is: " << bob.energyLevel << endl;

		//bark five times when low on energy 
		if(bob.energyLevel <= 25)
		{
			bob.Bark();
			bob.Bark();
			bob.Bark();
			bob.Bark();
			bob.Bark();

			cout << "Feed him to stop the barking." << endl;
		}

		bob.energyLevel--;
	}

	cout << "age: " << bob.getAge() << endl;
	bob.setAge(5);
	cout << "age: " << bob.getAge() << endl;

	cout << "Energy Level: " << bob.getEnergy() << endl;
	bob.setEnergy(15);
	cout << "Energy Level: " << bob.getEnergy() << endl;

	cout << "age: " << bob.getAge() << endl;
	cout << "age in dog years: " << bob.getDogYears() << endl;
	



	bob.~Dog(); //I guess he's alive, now

	// killClifford(); //AH AH AH AH
	system("PAUSE");
} 
//Clifford2.0 secretly dies here
//Killing virtual dogs increases IQ. It's science, guys.